package com.jinbiao.annotation_import;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * 测试该包下面的注解
 * @author EX_WLJR_ZHUANGJB
 *
 */
public class App_import {
	
	public static void main(String[] args) {
		//加载ConfigB类 
		ApplicationContext content = new AnnotationConfigApplicationContext(ConfigB.class);
		
		A a = 	content.getBean(A.class);
		B b = content.getBean(B.class);
		a.sayA();
		b.sayB();
	}
}
